#include <FreeRTOS.h>
#include "task.h"
#include "usbh_core.h"
#include "bflb_mtimer.h"
#include "board.h"

#define MOUSE_STACK_SIZE (1536)
#define MOUSE_TASK_PRIORITY (16)

extern void hid_mouse_init(void);
extern void hid_mouse_test(void);

static TaskHandle_t mouse_task_hd;

void mouse_task(void *params)
{
    hid_mouse_init();
    while(1)
    {
        hid_mouse_test();
        bflb_mtimer_delay_ms(500);
    }
}


int main(void)
{
    board_init();
    xTaskCreate(mouse_task, "mouse", 
        MOUSE_STACK_SIZE, NULL, MOUSE_TASK_PRIORITY, &mouse_task_hd);
    vTaskStartScheduler();
    while (1) {
    }
}
